Skip to content

test(ai): Test both reference prices from the template - #6779

Merged
dan-petty merged 1 commit into
mainfrom
feat/4244-hold-the-reference-prices-in-a
Nov 23, 2026
Merged

dan-petty merged 1 commit into
mainfrom
feat/4244-hold-the-reference-prices-in-a

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

#4244 asks that the repository own the price of the two reference models, so a new data volume needs no hand-written price file. #4242 already merged that code: the setting, the registry read and the template prices stand at the staged commit. One acceptance criterion still has no test, that the reports price both models from the committed template with no price file.

Closes #4244

Change: openspec/changes/archive/2026-11-22-4244-hold-the-reference-prices-in-a/

@devops-cli-service devops-cli-service Bot added scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/test Type test: a new or changed test labels Nov 22, 2026
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 3468494/22690 -
  • tools: run_command 19, grep 13, read_file 8, edit_file 7, write_file 3, create_directory 1
  • scoped check pre-push: passed, 11 s
  • scoped check static: passed, 85 s
  • scoped check tests: passed, 10 s
  • scoped check strength: passed, 0 s
  • group 1: skipped, group 1: kind other
  • mutation run and coverage delta: not run, because the change has no Python file under src/
  • verify of group 1: uv run devops ci test tests/ai/spend/test_pricing_registry_overrides.py exits 0.
No coverage index found. Run `devops ci coverage --build-index` to build one.
  tests/ai/spend/test_pricing_registry_overrides.py \u2192 tests/ai/spend/test_pricing_registry_overrides.py
================================================================================================================== test session starts ===================================================================================================================
platform linux -- Python 3.14.10, pytest-9.2.0, pluggy-1.7.0
rootdir: /run/roadmap/work/model-clone
configfile: pyproject.toml
plugins: xdist-3.8.0, cov-7.1.0, asyncio-1.4.1.post1, platformdirs-4.14.8, time-machine-3.6.0, mock-3.17.0, anyio-4.16.0, syrupy-7.0.3, timeout-2.4.0, hypothesis-6.170.17
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 11 items

tests/ai/spend/test_pricing_registry_overrides.py ...........                                                                                                                                                                                      [100%]

=================================================================================================================== 11 passed in 0.84s ===================================================================================================================
/run/roadmap/work/model-clone/.venv/lib/python3.14/site-packages/pytest_asyncio/plugin.py:300: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset.
The event loop scope for asynchronous fixtures will default to the "fixture" caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to "function" scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session"

  warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET))

)

#4244 asks that the repository own the price of the two reference models,
so a new data volume needs no hand-written price file. #4242 already
merged that code: the setting, the registry read and the template prices
stand at the staged commit. One acceptance criterion still has no test,
that the reports price both models from settings with no price file.

Closes #4244

Change: `openspec/changes/archive/2026-11-22-4244-hold-the-reference-prices-in-a/`
@dan-petty
dan-petty force-pushed the feat/4244-hold-the-reference-prices-in-a branch from 4e90b39 to df58896 Compare November 23, 2026 01:31
@dan-petty
dan-petty marked this pull request as ready for review November 23, 2026 01:38
@dan-petty
dan-petty self-requested a review as a code owner November 23, 2026 01:38
@dan-petty
dan-petty merged commit c7e4097 into main Nov 23, 2026
27 checks passed
@dan-petty
dan-petty deleted the feat/4244-hold-the-reference-prices-in-a branch November 23, 2026 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/ai AI review pipeline, personas, prompts, LLM client, or RAG type/test Type test: a new or changed test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ai): hold the reference prices in a repository-owned setting

1 participant